package com.galgram.project.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.galgram.project.entity.Section;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.galgram.project.mapper.FxCourseSectionMapper;
import com.galgram.project.domain.FxCourseSection;
import com.galgram.project.service.IFxCourseSectionService;

/**
 * 课程小节Service业务层处理
 *
 * @author galgram
 * @date 2024-11-20
 */
@Service
public class FxCourseSectionServiceImpl extends ServiceImpl<FxCourseSectionMapper, FxCourseSection> implements IFxCourseSectionService {

    @Autowired
    private FxCourseSectionMapper sectionMapper;

    @Override
    public List<FxCourseSection> selectFxCourseSectionList(FxCourseSection fxCourseSection) {
        return baseMapper.selectFxCourseSectionList(fxCourseSection);
    }

    @Override
    public List<Section> selectSectionList(Long chapterId) {
        return sectionMapper.selectSectionList(chapterId);
    }

}
